import com.yc.bos.dao.IUserDao;
import com.yc.bos.model.User;
import com.yc.bos.service.IUserService;
import org.activiti.engine.RepositoryService;
import org.activiti.engine.repository.ProcessDefinitionQuery;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(locations = "classpath:beans.xml")
public class Demo01 {

    @Autowired
    private IUserService userService;
    @Test
    public void  test1(){
        User user=new User();
        user.setUsername("ycc");
        user.setPassword("22");
        userService.save(user);
    }
    @Test
    public void  test2(){
        userService.modifyPassword("123","1");
    }

    @Autowired
    private RepositoryService rs;
    @Test
    public void  test3(){
        ProcessDefinitionQuery query= rs.createProcessDefinitionQuery();

    }

}
